#ifndef __LED_H__
#define __LED_H__

#define LED_RCC                     RCC_APB2Periph_GPIOB
#define LED_PORT                    GPIOB
#define LED1_PIN                    GPIO_Pin_0
#define LED2_PIN                    GPIO_Pin_1

enum xled_num {
    LED_1   = 0,
    LED_2   = 1
};

#ifdef __cplusplus
extern "C" {
#endif

extern void led_init(void);
extern void led_on(enum xled_num led);
extern void led_off(enum xled_num led);
extern void led_toggle(enum xled_num led);

#ifdef __cplusplus
}
#endif
#endif // __LED_H__